-- GENERATED SPELL FOR [Ursol'lok] --


function spell0_12037(pUnit, Event) --@Maul,n/a--
pUnit:FullCastSpellOnTarget(17156,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12037', 583, 1)
end

function Sorts_12037(pUnit, Event)
local choix_sorts_12037 = math.random(0, 0)
if choix_sorts_12037 == 0 then
pUnit:RegisterEvent('spell0_12037', 1, 1)
end
end

function mob12037_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12037', math.random(1500, 3000), 1)
end

function mob12037_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12037_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12037_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12037, 1, 'mob12037_Action')
RegisterUnitEvent(12037, 2, 'mob12037_Leave')
RegisterUnitEvent(12037, 3, 'mob12037_Kill')
RegisterUnitEvent(12037, 4, 'mob12037_Die')
